package com.talent.mapper;

import com.talent.entities.dto.Vacc;
import com.talent.entities.dto.VaccOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.LinkedList;

/**
 * @author 周意朗
 * Date: 2022/4/26
 * @since JDK 11
 */
@Mapper
public interface PaymentMapper {

    String selectFavorite(@Param("userid")String id);

    Boolean addFavorite(@Param("userid")String userid,@Param("vaccid")String vaccid);

    Boolean deleteFavorite(@Param("userid")String userid,@Param("vaccid")String vaccid);

    Boolean createOrder(@Param("orders")VaccOrder orders);

    Boolean finishOrder(@Param("oid") String oid, @Param("time")LocalDateTime time);

    LinkedList<VaccOrder> selectOrder(@Param("uid") String uid);

    Vacc findVacc(@Param("vid") String id);

}
